package cn.xiaozhi0802.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author Administrator
 * 请求绑定参数
 */
@Controller
@RequestMapping("/param")
public class ParamController {
    /**
     * String类型的参数绑定入门
     * @param username
     * @param password
     * @return
     */
    @RequestMapping("/testStringParam")
    public String testParam(String username, String password){
        System.out.println("用户名"+username);
        System.out.println("密码"+password);
        return "success";
    }
}
